package com.stef.saas.common.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@ApiModel(value="基础分页请求")
public class BasePageRquest implements Serializable {


    /**
     * 每页显示条数，默认 10
     */
    @ApiModelProperty(name = "size",dataType = "int",value = "分页大小")
    @Min(1)
    private Integer size = 10;

    /**
     * 当前页
     */
    @ApiModelProperty(name = "current",dataType = "int",value = "查询记录起始下标")
    @Min(1)
    private Integer current = 1;

//    @ApiModelProperty(name = "length",dataType = "int",value = "分页大小")
//    @NotNull
//    @Min(0)
//    private Integer length;
//
//    @ApiModelProperty(name = "start",dataType = "int",value = "查询记录起始下标")
//    private Integer start;
//
//    @ApiModelProperty(name = "pageIndex",dataType = "int",value = "分页下标")
//    @NotNull
//    @Min(0)
//    private Integer pageIndex;
//
//    @ApiModelProperty(name = "orderColum",dataType = "string",value = "排序字段")
//    private String  orderColum;
//
//    @ApiModelProperty(name = "orderAsc",dataType = "int",value = "排序方向")
//    private Integer orderAsc;


}
